package com.example.service;

import com.example.domain.Employment;
import com.example.domain.ExcelData;
import com.example.domain.Training;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.*;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.util.List;

/**
 * @author luo
 */

public interface EmploymentService {
    /**
     * 查询全部岗位
     * @return
     */
    public List<Employment> selectAllEmploy();

    /**
     * 查询单个岗位
     * @return
     */
    public Employment selectEmployById(Integer id);

    /**
     * 模糊查询
     * @param employment
     * @return
     */
    public List<Employment> selectEmploymentByName(Employment employment);

    /**
     * 添加招聘信息
     * @param employment
     * @return
     */
    public int addEmployment(Employment employment);

    /**
     * 更新招聘信息
     *
     * @param employment
     * @return
     */
    public int updateEmployment(Employment employment);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public int deleteEmployment(Integer id);
    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    public PageInfo<Employment> findPage(int page, int size);
    /**
     * 打印
     * @return
     */
    public ExcelData getOutputExcelProjectData();
}
